package com.xy.masterdata.infrastructure.persistent.po;

import com.xy.ddd.core.po.BasePo;
import javax.persistence.*;
import lombok.Data;

@Data
@Table(name = "APP_USER")
public class AppUser extends BasePo {
    @Column(name = "tenant_id")
    private Long tenantId;

    /**
     * 用户名
     */
    private String username;

    /**
     * 密码
     */
    private String password;

    /**
     * 工号
     */
    @Column(name = "work_no")
    private String workNo;

    /**
     * 手机号
     */
    private String phone;

    /**
     * 0未删除；1已删除
     */
    @Column(name = "is_deleted")
    private Integer isDeleted;

    public static final String ID = "id";

    public static final String TENANT_ID = "tenantId";

    public static final String USERNAME = "username";

    public static final String PASSWORD = "password";

    public static final String WORK_NO = "workNo";

    public static final String PHONE = "phone";

    public static final String CREATOR = "creator";

    public static final String CREATE_TIME = "createTime";

    public static final String MODIFIER = "modifier";

    public static final String UPDATE_TIME = "updateTime";

    public static final String IS_DELETED = "isDeleted";
}